package Year2021.month10.Day21.Day25;

public class VehicleInspectionCenter {
    public String phone;
    public String address;

    public void show() {
        System.out.println("车辆检测中心的地址是在" + address + "\t" + "联系电话是" + phone);
    }

    public boolean normal(int startUp, int speedUP, int brake,String brand) {
        if (startUp > 30 && startUp < 60) {
            System.out.println( brand+"正常启动!");
        }else {
            System.out.println(brand+"没有正常启动");
            return false;
        }
        if (speedUP >= 60 && speedUP < 120) {
            System.out.println(brand+"正常加速！");
        }else {
            System.out.println(brand+"没有正常加速！");
        }
        if (brake >= 120) {
            System.out.println(brand+"速度太快开始减速刹车！!刹车正常");
            return true;
        }else {
            System.out.println(brand+"刹车不正常！");

        }
        return false;

    }
}
